home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Secrets 4 / Hacker's Secrets 4.iso / privacy / security.txt < prev    next >
Text File  |  1996-04-05  |  78KB  |  1,762 lines

  1. Alec.Muffett@UK.Sun.COM 
  2.  
  3. FAQ: Computer Security Frequently Asked Questions
  4.  
  5. 29 Mar 1994 09:50:10 GMT Sun Microsystems, UK 
  6.  
  7. Newsgroups: 
  8.    alt.security,comp.security.misc,comp.security.unix,news.answers 
  9.  
  10. Archive-name: security-faq
  11. Last-modified: 1993/12/3
  12. Version: 2.2
  13.  
  14.  
  15. Version History:
  16.  
  17. 2.2     LD_PRELOAD comment
  18. 2.1     New story, TAMU package info
  19. 2.0     MERGE IN LOTS OF NEW INFORMATION
  20. 1.6     Minor revisions, meant to bring it a bit more up to date.
  21. 1.5     Structural revision.
  22. 1.4     Fixed John Haugh's name, modified entry for "shadow"
  23.         Added Ulf Kieber's update on the rainbow series
  24.         Added bit about Karila paper
  25. 1.3:    Tweak for comp.security.misc/news.answers
  26.         Updated entry for orange book (foreign purchases)
  27. 1.2:    Undocumented prior to this
  28. ---------------------------------------------------------------------------
  29.  
  30.         Almost Everything You Ever Wanted To Know About Security*
  31.                        *(but were afraid to ask!)
  32.  
  33. This document is meant to answer some of the questions which regularly
  34. appear in the Usenet newsgroups "comp.security.misc", "comp.security.unix", 
  35. and "alt.security", and is meant to provide some background to the
  36. subject for newcomers to that newsgroup. 
  37.  
  38. This FAQ is maintained by Alec Muffett (Alec.Muffett@UK.Sun.COM), with
  39. contributions from numerous others; the views expressed in the document
  40. are the personal views of the author(s), and it should not be inferred
  41. that they are necessarily shared by anyone with whom the author(s) are
  42. now, or ever may be, associated.
  43.  
  44. Many thanks go to (in no particular order): Steve Bellovin, Matt Bishop,
  45. Mark Brader, Ed DeHart, Dave Hayes, Jeffrey Hutzelman, William LeFebvre,
  46. Wes Morgan, Rob Quinn, Chip Rosenthal, Wietse Venema, Gene Spafford,
  47. John Wack and Randall Atkinson.
  48.  
  49. Disclaimer: Every attempt is made to ensure that the information
  50. contained in this FAQ is up to date and accurate, but no responsibility
  51. will be accepted for actions resulting from information gained herein.
  52.  
  53. Questions which this document addresses:
  54.  
  55. Q.1 What are alt.security and comp.security.misc for?
  56. Q.2 Whats the difference between a hacker and a cracker?
  57. Q.3 What is "security through obscurity"
  58. Q.4 What makes a system insecure?
  59. Q.5 What tools are there to aid security?
  60. Q.6 Where can I get these tools?
  61. Q.7 Isn't it dangerous to give cracking tools to everyone?
  62. Q.8 Why and how do systems get broken into?
  63. Q.9 Who can I contact if I get broken into?
  64. Q.10 What is a firewall?
  65. Q.11 Why shouldn't I use setuid shell scripts?
  66. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  67. Q.13 Why shouldn't I create Unix accounts with null passwords?
  68. Q.14 What security holes are associated with X-windows (and other WMs)?
  69. Q.15 What security holes are associated with NFS?
  70. Q.16 How can I generate safe passwords?
  71. Q.17 Why are passwords so important?
  72. Q.18 How many possible passwords are there?
  73. Q.19 Where can I get more information?
  74. Q.20 How silly can people get?
  75. ---------------------------------------------------------------------------
  76.  
  77. Q.1 What are alt.security and comp.security.misc for?
  78.  
  79. Comp.security.misc is a forum for the discussion of computer security,
  80. especially those relating to Unix (and Unix like) operating systems.
  81. Alt.security used to be the main newsgroup covering this topic, as well
  82. as other issues such as car locks and alarm systems, but with the
  83. creation of comp.security.misc, this may change.
  84.  
  85. This FAQ will concentrate wholly upon computer related security issues.
  86.  
  87. The discussions posted range from the likes of "What's such-and-such
  88. system like?" and "What is the best software I can use to do so-and-so"
  89. to "How shall we fix this particular bug?", although there is often a
  90. low signal to noise ratio in the newsgroup (a problem which this FAQ
  91. hopes to address).
  92.  
  93. The most common flamewars start when an apparent security novice posts a
  94. message saying "Can someone explain how the such-and-such security hole
  95. works?" and s/he is immediately leapt upon by a group of self appointed
  96. people who crucify the person for asking such an "unsound" question in a
  97. public place, and flame him/her for "obviously" being a cr/hacker.
  98.  
  99. Please remember that grilling someone over a high flame on the grounds
  100. that they are "a possible cr/hacker" does nothing more than generate a
  101. lot of bad feeling.  If computer security issues are to be dealt with in
  102. an effective manner, the campaigns must be brought (to a large extent)
  103. into the open.
  104.  
  105. Implementing computer security can turn ordinary people into rampaging
  106. paranoiacs, unable to act reasonably when faced with a new situation.
  107. Such people take an adversarial attitude to the rest of the human race,
  108. and if someone like this is in charge of a system, users will rapidly
  109. find their machine becoming more restrictive and less friendly (fun?) to
  110. use.
  111.  
  112. This can lead to embarrasing situations, eg: (in one university) banning
  113. a head of department from the college mainframe for using a network
  114. utility that he wasn't expected to.  This apparently required a lot of
  115. explaining to an unsympathetic committee to get sorted out.
  116.  
  117. A more sensible approach is to secure a system according to its needs,
  118. and if its needs are great enough, isolate it completely.  Please, don't
  119. lose your sanity to the cause of computer security; it's not worth it.
  120.  
  121.         usenet/comp.sources.misc/volume29
  122.         usenet/comp.sources.misc/volume30
  123.         usenet/comp.sources.misc/volume32
  124. ------------------------------------------------------------------
  125.  
  126. Q.2 What's the difference between a hacker and a cracker?
  127.  
  128. Lets get this question out of the way right now:
  129.  
  130. On USENET, calling someone a "cracker" is an unambiguous statement that
  131. some person persistently gets his/her kicks from breaking from into
  132. other peoples computer systems, for a variety of reasons.  S/He may pose
  133. some weak justification for doing this, usually along the lines of
  134. "because it's possible", but most probably does it for the "buzz" of
  135. doing something which is illicit/illegal, and to gain status amongst a
  136. peer group.
  137.  
  138. Particularly antisocial crackers have a vandalistic streak, and delete
  139. filestores, crash machines, and trash running processes in pursuit of
  140. their "kicks".
  141.  
  142. The term is also widely used to describe a person who breaks copy
  143. protection software in microcomputer applications software in order to
  144. keep or distribute free copies.
  145.  
  146. On USENET, calling someone a "hacker" is usually a statement that said
  147. person holds a great deal of knowledge and expertise in the field of
  148. computing, and is someone who is capable of exercising this expertise
  149. with great finesse.  For a more detailed definition, readers are
  150. referred to the Jargon File [Raymond].
  151.  
  152. In the "real world", various media people have taken the word "hacker"
  153. and coerced it into meaning the same as "cracker" - this usage
  154. occasionally appears on USENET, with disastrous and confusing results.
  155.  
  156. Posters to the security newsgroups should note that they currently risk
  157. a great deal of flamage if they use the word "hacker" in place of
  158. "cracker" in their articles.
  159.  
  160. NB: nowhere in the above do I say that crackers cannot be true hackers.
  161. It's just that I don't say that they are...
  162. ------------------------------------------------------------------
  163.  
  164. Q.3 What is "security through obscurity"
  165.  
  166. Security Through Obscurity (STO) is the belief that any system can be
  167. secure so long as nobody outside of its implementation group is allowed
  168. to find out anything about its internal mechanisms.  Hiding account
  169. passwords in binary files or scripts with the presumption that "nobody
  170. will ever find it" is a prime case of STO.
  171.  
  172. STO is a philosophy favoured by many bureaucratic agencies, and it used
  173. to be a major method of providing "pseudosecurity" in computing systems.
  174.  
  175. Its usefulness has declined in the computing world with the rise of open
  176. systems, networking, greater understanding of programming techniques, as
  177. well as the increase in computing power available to the average person.
  178.  
  179. The basis of STO has always been to run your system on a "need to know"
  180. basis.  If a person doesn't know how to do something which could impact
  181. system security, then s/he isn't dangerous.
  182.  
  183. Admittedly, this is sound in theory, but it can tie you into trusting a
  184. small group of people for as long as they live.  If your employees get
  185. an offer of better pay from somewhere else, the knowledge goes with
  186. them, whether the knowledge is replaceable or not.  Once the secret gets
  187. out, that is the end of your security.
  188.  
  189. Nowadays there is also a greater need for the ordinary user to know
  190. details of how your system works than ever before, and STO falls down a
  191. as a result.  Many users today have advanced knowledge of how their
  192. operating system works, and because of their experience will be able to
  193. guess at the bits of knowledge that they didn't "need to know".  This
  194. bypasses the whole basis of STO, and makes your security useless.
  195.  
  196. Hence there is now a need is to to create systems which attempt to be
  197. algorithmically secure (Kerberos, Secure RPC), rather than just
  198. philosophically secure.  So long as your starting criteria can be met,
  199. your system is LOGICALLY secure.
  200.  
  201. Incidentally, "Shadow Passwords" (below) are sometimes dismissed as STO,
  202. but this is incorrect, since (strictly) STO depends on restricting
  203. access to an algorithm or technique, whereas shadow passwords provide
  204. security by restricting access to vital data.
  205. ------------------------------------------------------------------
  206.  
  207. Q.4 What makes a system insecure?
  208.  
  209. Switching it on.  The adage usually quoted runs along these lines:
  210.  
  211.  "The only system which is truly secure is one which is switched off
  212.  and unplugged, locked in a titanium lined safe, buried in a concrete
  213.  bunker, and is surrounded by nerve gas and very highly paid armed
  214.  guards.  Even then, I wouldn't stake my life on it."
  215.  
  216. (the original version of this is attributed to Gene Spafford)
  217.  
  218. A system is only as secure as the people who can get at it.  It can be
  219. "totally" secure without any protection at all, so long as its continued
  220. good operation is important to everyone who can get at it, assuming all
  221. those people are responsible, and regular backups are made in case of
  222. hardware problems.  Many laboratory PC's quite merrily tick away the
  223. hours like this.
  224.  
  225. The problems arise when a need (such as confidentiality) has to be
  226. fulfilled.  Once you start putting the locks on a system, it is fairly
  227. likely that you will never stop.
  228.  
  229. Security holes manifest themselves in (broadly) four ways:
  230.  
  231. 1) Physical Security Holes.
  232.  
  233. - Where the potential problem is caused by giving unauthorised persons
  234. physical access to the machine, where this might allow them to perform
  235. things that they shouldn't be able to do.
  236.  
  237. A good example of this would be a public workstation room where it would
  238. be trivial for a user to reboot a machine into single-user mode and muck
  239. around with the workstation filestore, if precautions are not taken.
  240.  
  241. Another example of this is the need to restrict access to confidential
  242. backup tapes, which may (otherwise) be read by any user with access to
  243. the tapes and a tape drive, whether they are meant to have permission or
  244. not.
  245.  
  246. 2) Software Security Holes
  247.  
  248. - Where the problem is caused by badly written items of "privledged"
  249. software (daemons, cronjobs) which can be compromised into doing things
  250. which they shouldn't oughta.
  251.  
  252. The most famous example of this is the "sendmail debug" hole (see
  253. bibliography) which would enable a cracker to bootstrap a "root" shell.
  254. This could be used to delete your filestore, create a new account, copy
  255. your password file, anything.
  256.  
  257. (Contrary to popular opinion, crack attacks via sendmail were not just
  258. restricted to the infamous "Internet Worm" - any cracker could do this
  259. by using "telnet" to port 25 on the target machine.  The story behind a
  260. similar hole (this time in the EMACS "move-mail" software) is described
  261. in [Stoll].)
  262.  
  263. New holes like this appear all the time, and your best hopes are to:
  264.  
  265.   a: try to structure your system so that as little software as possible
  266.   runs with root/daemon/bin privileges, and that which does is known to
  267.   be robust.
  268.  
  269.   b: subscribe to a mailing list which can get details of problems
  270.   and/or fixes out to you as quickly as possible, and then ACT when you
  271.   receive information.
  272.  
  273. >From: Wes Morgan 
  274. >
  275. > c: When installing/upgrading a given system, try to install/enable only
  276. > those software packages for which you have an immediate or foreseeable
  277. > need.  Many packages include daemons or utilities which can reveal
  278. > information to outsiders.  For instance, AT&T System V Unix' accounting
  279. > package includes acctcom(1), which will (by default) allow any user to
  280. > review the daily accounting data for any other user.  Many TCP/IP packa-
  281. > ges automatically install/run programs such as rwhod, fingerd, and
  282. >  tftpd, all of which can present security problems.
  283. >
  284. > Careful system administration is the solution.  Most of these programs
  285. > are initialized/started at boot time; you may wish to modify your boot
  286. > scripts (usually in the /etc, /etc/rc, /etc/rcX.d directories) to pre-
  287. > vent their execution.  You may wish to remove some utilities completely.
  288. > For some utilities, a simple chmod(1) can prevent access from unauthorized
  289. > users.
  290. >
  291. > In summary, DON'T TRUST INSTALLATION SCRIPTS/PROGRAMS!  Such facilities
  292. > tend to install/run everything in the package without asking you.  Most
  293. > installation documentation includes lists of "the programs included in
  294. > this package"; be sure to review it.
  295.  
  296. 3) Incompatible Usage Security Holes
  297.  
  298. - Where, through lack of experience, or no fault of his/her own, the
  299. System Manager assembles a combination of hardware and software which
  300. when used as a system is seriously flawed from a security point of view.
  301. It is the incompatibility of trying to do two unconnected but useful
  302. things which creates the security hole.
  303.  
  304. Problems like this are a pain to find once a system is set up and
  305. running, so it is better to build your system with them in mind.  It's
  306. never too late to have a rethink, though.
  307.  
  308. Some examples are detailed below; let's not go into them here, it would
  309. only spoil the surprise.
  310.  
  311. 4) Choosing a suitable security philosophy and maintaining it.
  312.  
  313. >From: Gene Spafford 
  314. >The fourth kind of security problem is one of perception and
  315. >understanding.  Perfect software, protected hardware, and compatible
  316. >components don't work unless you have selected an appropriate security
  317. >policy and turned on the parts of your system that enforce it.  Having
  318. >the best password mechanism in the world is worthless if your users
  319. >think that their login name backwards is a good password! Security is
  320. >relative to a policy (or set of policies) and the operation of a system
  321. >in conformance with that policy.
  322. ------------------------------------------------------------------
  323.  
  324. Q.5 What tools are there to aid security
  325. Q.6 ...and... where can I get these tools?
  326.  
  327. ==================================================================
  328. *** This is a section which has changed very rapidly over the past
  329. *** few months; hence I am changing the format ever so slightly, in
  330. *** order to allow for expansion - Alec
  331. ==================================================================
  332.  
  333. COPS                    Dan Farmer, et al.
  334.  
  335. Managed/largely written by Dan Farmer, COPS is a suite of shell scripts
  336. which forms an extensive security testing system; there's a rudimentary
  337. password cracker, and routines to check the filestore for suspicious
  338. changes in setuid programs, others to check permissions of essential
  339. system and user files, and still more to see whether any system software
  340. behaves in a way which could cause problems.
  341.  
  342. The software comes in two versions - one written in Perl and one
  343. (largely equivalent) written in shell scripts.  The latest version is
  344. very up-to-date on Unix Security holes.
  345.  
  346. COPS V1.04 is available for FTP from cert.org in pub/cops and
  347. archive.cis.ohio-state.edu in pub/cops.
  348. ------------------------------------------------------------------
  349. Crack                   Alec Muffett
  350. UFC                     Michael Glad
  351.  
  352. Crack is a program written with one purpose in mind: to break insecure
  353. passwords.  It is probably the most efficent and friendly password
  354. cracker that is publically available, with the ability to let the user
  355. to specify precisely how to form the words to use as guesses at users
  356. passwords.
  357.  
  358. It also has an inbuilt networking capability, allowing the load of
  359. cracking to be spread over as many machines as are available on a
  360. network, and it is supplied with an optimised version of the Unix crypt()
  361. algorithm.
  362.  
  363. An even faster version of the crypt() algorithm, "UFC" by Michael Glad,
  364. is freely available on the network, and the latest versions of UFC and
  365. Crack are compatible and can be easily hooked together.
  366.  
  367. Crack v4.1f and UFC are available from:  ftp.uu.net (137.39.1.9)
  368.  
  369. In the directory:       /usenet/comp.sources.misc/volume28
  370. As:                     crack/part01.Z to part05.Z      ( 5 files )
  371. And                     ufc-crypt/part01.Z & part02.Z   ( 2 files )
  372.  
  373. NB: For people with access to a Connection Machine:
  374.  
  375. >From: glad@daimi.aau.dk (Michael Glad)
  376. >
  377. >A UNIX password cracker for the Thinking Machine CM/2 and CM/200
  378. >Connection Machines is available for FTP from
  379. >
  380. >       ftp.denet.dk:/pub/misc/cm200-UFC.tar.Z
  381. >
  382. > This is a password cracker for the Thinking Machines CM/2 and CM/200
  383. > Connection Machines. It features
  384. >
  385. >       o A standalone dictionary preprocessor accepting a
  386. >         language of rewrite rules compatible with the one
  387. >         found in Alec Muffets 'Crack' password cracker as of
  388. >         release 4.1f.
  389. >
  390. >       o An optimized port of the UFC-crypt: a fast implementation
  391. >         of the UNIX crypt(3) function developed by Michael Glad and
  392. >         donated to the Free Software Foundation (FSF).
  393. >
  394. >       o The password cracker itself. It supports restart of crashed
  395. >         runs and incremental use. Incremental use means that when
  396. >         you use a fixed dictionary, the cracker can maintain a status
  397. >         file of already cracked passwords and passwords considered
  398. >         uncrackable (because they've been tested in previous runs).
  399. >         Thus it only has to waste CPU cycles on new accounts and accounts
  400. >         with changed passwords.
  401. >
  402. >       o When run with a _large_ dictionary (a 1 million word dictionary
  403. >         obtained by preprocessing /usr/dict/words), the cracker can
  404. >         test in excess of 50,000 passwords a second on a CM/200 with
  405. >         8192 processors.
  406. ------------------------------------------------------------------
  407. CrackLib                Alec Muffett
  408.  
  409. Cracklib is a C LIBRARY containing a routine which may be wired into all
  410. sorts of "passwd"-like programs; not just Unix, but with a little effort
  411. it could probably go onto VMS (this is being worked upon), or many other
  412. systems.
  413.  
  414. Using "CrackLib" allows you to wire proactive password checking into
  415. _any_ of your applications; it is an offshoot of the the version 5
  416. "Crack" software, and contains a considerable number of ideas nicked
  417. from the new software.
  418.  
  419. CrackLib was posted to "comp.sources.misc", and therefore available from
  420. any major usenet archive.  A reference copy (+ large dictionary) can be
  421. FTP'ed from:
  422.  
  423.         black.ox.ac.uk:~ftp/src/security/cracklib25.tar.Z
  424.  
  425. NB: if you search for CrackLib on "Archie", care should be taken to get
  426. the package from a comp.sources.misc archive; beware confusing it with a
  427. package of the same name, which was hacked into "npasswd".
  428. ------------------------------------------------------------------
  429. NPasswd                 Clyde Hoover
  430. Passwd+                 Matt Bishop
  431. Shadow                  John F. Haugh II
  432.  
  433. Passwd+ & NPasswd: these programs are written to redress the balance in
  434. the password cracking war.  They provide replacements for the standard
  435. "passwd" command, but prevent a user from selecting passwords which are
  436. easily compromised by programs like Crack.
  437.  
  438. The usual term for this type of program is a 'fascist' password program.
  439.  
  440. NPasswd: Currently suffering from being hacked about by many different
  441. people, in order to provide compatibility for System V based systems,
  442. NIS/YP, shadow password schemes, etc.  Version 2.0 is in the offing, but
  443. many versions exist in many different configurations.
  444.  
  445. Passwd+: "alpha version, update 3" - beta version due soon.  Available
  446. from dartmouth.edu as pub/passwd+.tar.Z
  447.  
  448. Shadow: is a set of program and function replacements (compatible with
  449. most Unixes) which implements shadow passwords, ie: a system where the
  450. plaintext of the password file is hidden from all users except root,
  451. hopefully stopping all password cracking attempts at source.  In
  452. combination with a fascist passwd frontend, it should provide a good
  453. degree of password file robustness.
  454.  
  455. >From: jfh@rpp386.cactus.org (John F. Haugh II)
  456. >Shadow does much more than hide passwords.  It also provides for
  457. >terminal access control, user and group administration, and a few
  458. >other things which I've forgotten.  There are a dozen or more
  459. >commands in the suite, plus a whole slew of library functions.
  460.  
  461. Shadow is available from the comp.sources.misc directory at any major
  462. USENET archive - relevant files are in:
  463.  
  464.         usenet/comp.sources.misc/volume38
  465.         usenet/comp.sources.misc/volume39
  466.  
  467. - the contents of both of which are needed, for a full set of patches.
  468.  
  469. Given that the latest release of Shadow has a hook for "CrackLib"
  470. support, it now ranks as a full blown fascist password program, on top
  471. of its other functionality.
  472.  
  473. CrackLib support is expected in Passwd+, in the near future.
  474. ------------------------------------------------------------------
  475. TCP Wrappers            Wietse Venema
  476.  
  477. These are programs which provide front-end filters to MOST of the
  478. network services which Unix provides by default.
  479.  
  480. If installed, they can curb otherwise unrestricted access to potential
  481. dangers like incoming FTP/TFTP, Telnet, etc, and can provide extra
  482. logging information, which may be of use if it appears that someone is
  483. trying to break in.
  484.  
  485. From the BLURB
  486.  
  487. >With these programs you can monitor and control who connects to your
  488. >TFTP, EXEC, FTP, RSH, TELNET, RLOGIN, FINGER, and SYSTAT network
  489. >services, and many others.
  490. >
  491. >The programs can be installed without any changes to existing software
  492. >or configuration files. By default, they just log the remote host name
  493. >and do some sanity checks on the origin of the request. No information
  494. >is exchanged with the remote client process.
  495. >
  496. >Significant differences with respect to the previous release:
  497. >
  498. >    - Easier to install: ready-to-use build procedures for many common
  499. >      UNIX implementations (sun, ultrix, hp-ux, irix, aix, ...).
  500. >
  501. >    - Support for the System V.4 TLI network programming interface
  502. >      (Solaris, DG/UX etc.).  In case of TLI applications on top of
  503. >      TCP/IP, the wrappers provide the same functionality as with
  504. >      socket-based applications.
  505. >
  506. >    - A more secure finger tool for automatic reverse finger probes.
  507. >
  508. >    - New extension language keywords:  "severity", to adjust the log
  509. >      noise level; "allow" and "deny", to keep all access-control rules
  510. >      within a single file.
  511. >
  512. >    - More support for selective remote username lookups.
  513. >
  514. >    - More workarounds for System V bugs: IRIX username lookups, and
  515. >      SCO problems with UDP.
  516. >
  517. >      The default mode of operation (no TLI support) should be backwards
  518. >      compatible with earlier versions. The library interface has changed,
  519. >      though, and programs that depend on the libwrap.a library will have to
  520. >      be recompiled before they can be relinked.
  521. >
  522. >      Wietse Venema (wietse@wzv.win.tue.nl)
  523.  
  524. TCP Wrappers are available for anonymous FTP from:
  525.  
  526.             cert.org:pub/tools/tcp_wrappers
  527. ------------------------------------------------------------------
  528. SecureLib               William LeFebvre
  529.  
  530. >From: phil@pex.eecs.nwu.edu
  531. >You may want to add a mention of securelib, a security enhancer
  532. >available for SunOS version 4.1 and higher.
  533.  
  534. >Securelib contains replacement routines for three kernel calls:
  535. >accept(), recvfrom(), recvmsg().  These replacements are compatible with
  536. >the originals, with the additional functionality that they check the
  537. >Internet address of the machine initiating the connection to make sure
  538. >that it is "allowed" to connect.  A configuration file defines what
  539. >hosts are allowed for a given program.  Once these replacement routines
  540. >are compiled, they can be used when building a new shared libc library.
  541. >The resulting libc.so can then be put in a special place.  Any program
  542. >that should be protected can then be started with an alternate
  543. >LD_LIBRARY_PATH.
  544.  
  545. The latest version of securelib is available via anonymous FTP from the
  546. host "eecs.nwu.edu".  It is stored in the file "pub/securelib.tar".
  547. ------------------------------------------------------------------
  548. ISS                     Chris Klaus
  549. YPX                     Rob Nauta
  550.  
  551. >Internet Security Scanner (ISS) is one of the first multi-level security
  552. >scanners available to the public.  It was designed to be flexible and
  553. >easily portable to many unix platforms and do its job in a reasonable
  554. >amount of time.  It provides information to the administrator that will
  555. >fix obvious security misconfigurations.
  556. >
  557. >ISS does a multi-level scan of security, not just searching for one
  558. >weakness in the system.  To provide this to the public or at least to
  559. >the security conscious crowd may cause people to think that it is too
  560. >dangerous for the public, but many of the (cr/h)ackers are already aware
  561. >of these security holes and know how to exploit them.
  562. >
  563. >These security holes are not deep in some OS routines, but standard
  564. >misconfigurations that many domains on Internet tend to show.  Many of
  565. >these holes are warned about in CERT and CIAC advisories.  This is the
  566. >first release of ISS and there is still much room for improvement.
  567.  
  568. [...A simplistic description of ISS might be that it is to the Unix
  569. Network Services, what COPS is to the Unix filesystem; ie: a tool to
  570. allow a systems administrator to find potential holes, giving him/her a
  571. chance to solve the problem BEFORE a cracker attack an occur.
  572.  
  573. ISS and an auxilliary program, YPX, have been recently posted to
  574. comp.sources.misc.  Because ISS is in a early stage of development,
  575. check an "Archie" site for the most up-to-date information...Alec]
  576. ------------------------------------------------------------------
  577. TripWire                Gene Kim, Gene Spafford
  578.  
  579. [From the Announce file]
  580.  
  581. >Tripwire is an integrity-monitor for Unix systems.  It uses several
  582. >checksum/signature routines to detect changes to files, as well as
  583. >monitoring selected items of system-maintained information.  The system
  584. >also monitors for changes in permissions, links, and sizes of files and
  585. >directories.  It can be made to detect additions or deletions of files
  586. >from watched directories.
  587. >
  588. >The configuration of Tripwire is such that the system/security
  589. >administrator can easily specify files and directories to be monitored
  590. >or to be excluded from monitoring, and to specify files which are
  591. >allowed limited changes without generating a warning.  Tripwire can also
  592. >be configured with customized signature routines for site-specific
  593. >checks.
  594. >
  595. >Tripwire, once installed on a clean system, can detect changes from
  596. >intruder activity, unauthorized modification of files to introduce
  597. >backdoor or logic-bomb code, (if any were to exist) virus activity in
  598. >the Unix environment.
  599. >
  600. >Tripwire is provided as source code with documentation.  The system, as
  601. >delivered, performs no changes to system files and does not require root
  602. >privilege to run (in the general case).  The code has been beta-tested
  603. >in a form close to that of this release at over 100 sites world-wide.
  604. >Tripwire should work on almost any version of Unix, from Xenix on
  605. >80386-based machines to Cray and ETA-10 supercomputers.
  606. >
  607. >Tripwire may be used without charge, but it may not be sold or modified
  608. >for sale.  Tripwire was written as a project under the auspices of the
  609. >COAST Project at Purdue University.  The primary author was Gene Kim,
  610. >with the aid and under the direction of Gene Spafford (COAST director).
  611. >
  612. >Copies of the Tripwire distribution may be ftp'd from ftp.cs.purdue.edu
  613. >from the directory pub/spaf/COAST/Tripwire.  The distribution is
  614. >available as a compressed tar file, and as uncompressed shar kits.  The
  615. >shar kit form of Tripwire version 1.0 will also be posted to
  616. >comp.sources.unix on the Usenet.
  617. >
  618. >A mailserver exists for distribution and to support a Tripwire mailing
  619. >list.  To use the mail server, send e-mail to
  620. >"tripwire-request@cs.purdue.edu" with a message body consisting solely
  621. >of the word "help".  The server will respond with instructions on how to
  622. >get source, patches, and how to join the mailing list.
  623. >
  624. >Questions, comments, complaints, bugfixes, etc may be directed to:
  625. >genek@mentor.cc.purdue.edu (Gene Kim)
  626. >spaf@cs.purdue.edu (Gene Spafford)
  627. ------------------------------------------------------------------
  628. TAMU                    Dave Safford, Doug Schales, Dave Hess
  629.  
  630. From the ANNOUNCE file:
  631.  
  632. >              Texas A&M Network Security Package Update
  633. >                              7/1/93
  634. >
  635. >                          Dave Safford
  636. >                          Doug Schales
  637. >                           Dave Hess
  638. >
  639. >This is an updated release of the security tools developed at the
  640. >Texas A&M University Supercomputer Center.  These tools are available
  641. >for anonymous FTP from net.tamu.edu:/pub/security/TAMU.
  642. [...]
  643. >ORIGINAL DESCRIPTION:
  644. >
  645. >Last August, Texas A&M University UNIX computers came under extensive
  646. >attack from a coordinated group of internet crackers.  This package of
  647. >security tools represents the results of over nine months of
  648. >development and testing of the software we have been using to protect
  649. >our estimated five thousand IP devices.  This package includes three
  650. >coordinated sets of tools: "drawbridge", an exceptionally powerful
  651. >bridging filter package; "tiger", a set of convenient yet thorough
  652. >machine checking programs; and "netlog", a set of intrusion detection
  653. >network monitoring programs.
  654. >
  655. >KEY FEATURES:
  656. >
  657. >For full technical details on the products, see their individual README's,
  658. >but here are some highlights:
  659. >
  660. >       DRAWBRIDGE:
  661. >               - inexpensive (PC with two SMC/WD 8013 cards)
  662. >               - high level filter language and compiler
  663. >               - powerful filtering parameters
  664. >               - DES authenticated remote filter management
  665. >               - O(1) table lookup processing even with dense class B
  666. >                       net filter specifications.      
  667. >
  668. >       TIGER:
  669. >               - checks key binaries against cryptographic
  670. >                 checksums from original distribution files
  671. >               - checks for critical security patches
  672. >               - checks for known intrusion signatures
  673. >               - checks all critical configuration files
  674. >               - will run on most UNIX systems, and has tailored
  675. >                 components for SunOS, Next, SVR4, Unicos.
  676. >
  677. >       NETLOG:
  678. >               - efficiently logs all tcp/udp establishment attempts
  679. >               - powerful query tool for analyzing connection logs
  680. >               - "intelligent" intrusion detection program
  681. >
  682. >AVAILABILITY:
  683. >
  684. >This package is available via anonymous ftp in 
  685. >
  686. >       net.tamu.edu: pub/security/TAMU
  687. >
  688. >Due to the sensitive nature of these tools, we recommend that you
  689. >retrieve them from this location. If you do not get them from
  690. >net.tamu.edu we suggest that you use our check_TAMU script that uses
  691. >cryptographic checksums to check the distribution for any signs of
  692. >tampering. The script is available in the anonymous ftp directory above
  693. >and from an e-mail server at:
  694. >
  695. >       drawbridge-server@net.tamu.edu
  696. >
  697. >Note that there are some distribution limitations, such as the
  698. >inability to export outside the US the DES libraries used in
  699. >drawbridge; see the respective tool README's for details of any
  700. >restrictions. (Note that the DES libraries are NOT required to use
  701. >drawbridge. They just enable secure remote management of drawbridge.)
  702. >
  703. >CONTACT:
  704. >
  705. >Comments and questions are most welcome. Please address them to:
  706. >
  707. >       drawbridge@net.tamu.edu
  708.  
  709. [A wonderful paper about TAMU was presented at the 4th USENIX Security
  710. Symposium, and is reprinted in the proceedings of the same - Alec]
  711. ------------------------------------------------------------------
  712. SPI
  713.  
  714. >From: Gene Spafford 
  715. >Sites connected with the Department of Energy and some military
  716. >organizations may also have access to the SPI package.  Interested (and
  717. >qualified) users should contact the CIAC at LLNL for details.
  718.  
  719. >SPI is a screen-based administrator's tool that checks configuration
  720. >options, includes a file-change (integrity) checker to monitor for
  721. >backdoors and viruses, and various other security checks.  Future
  722. >versions will probably integrate COPS into the package.  It is not
  723. >available to the general public, but it is available to US Dept of
  724. >Energy contractors and sites and to some US military sites.  A version
  725. >does or will exist for VMS, too.  Further information on availabilty can
  726. >be had from the folks at the DoE CIAC.
  727.  
  728. [...A paper on SPI was recently presented at the 1993 USENIX Security
  729. symposium; apparently v2.1 has appeared on an anonymous FTP site
  730. recently, but whether this is in accordance with licencing agreements is
  731. unknown to the author of this FAQ, and anyway, he's forgotten what the
  732. IP address was, so...]
  733. ------------------------------------------------------------------
  734. TIS Firewall Toolkit    Trusted Information Systems, Inc.
  735.  
  736. >From: mjr@tis.com (Marcus J. Ranum)
  737. >
  738. >Version 1.0 of the TIS network firewall toolkit is now available for
  739. >anonymous FTP from ftp.tis.com, in directory pub/firewalls/toolkit
  740. >
  741. >WHAT IS THE TIS FIREWALL TOOLKIT?
  742. >---------------------------------
  743. >Trusted Information Systems, Inc.  (TIS) is pleased to provide the TIS
  744. >Firewall Toolkit, a software kit for building and maintaining
  745. >internetwork Firewalls.  It is distributed in source code form, with all
  746. >modules written in the C programming language and runs on many BSD UNIX
  747. >derived platforms.  The Toolkit is being made available for use as
  748. >specified in the license agreement (LICENSE).
  749. >
  750. >The firewall toolkit is a set of programs, configuration practices, and
  751. >documentation intended to help individuals who are trying to build
  752. >internet firewalls.  Included with the kit are complete sources for FTP,
  753. >rlogin, and telnet application proxies, user authentication management,
  754. >compartmented SMTP, and logging/log reduction.
  755. >
  756. >USERS' GROUP
  757. >------------
  758. >TIS maintains the electronic-mail users' group  for
  759. >discussion of the toolkit.  To join, send electronic mail to
  760. >.
  761. >
  762. >TIS Firewall Toolkit technical questions, license issues, bug reports,
  763. >etc.  should be addressed to .
  764. >
  765. >Information about other TIS network security products or commercial
  766. >licensing requests should be sent to  or by telephone to
  767. >(301) 854-6889.
  768. >
  769. >
  770. >The contents of pub/firewalls/toolkit are as follows:
  771. >README                  - This file
  772. >fwtk-doc-only.tar.Z     - Toolkit documentation
  773. >fwtk.tar.Z              - Toolkit sources and Makefiles (no documentation)
  774. >US-only                 - Directory containing US-only software. If you
  775. >                          are not accessing this from a site in the US or
  776. >                          canada you will not be able to FTP these files.
  777. >                          The toolkit is still useable without these files.
  778. ------------------------------------------------------------------
  779. SOCKS                   Ying-Da Lee/David Koblas
  780.  
  781. >From: ylee@syl.dl.nec.com (Ying-Da Lee)
  782. >
  783. >(This is a package that allows hosts behind a firewall the use of
  784. >finger, ftp, telnet, xgopher, and xmosaic to access the resources
  785. >outside of the firewall while maintaining the security requirements.)
  786. >
  787. >A new release of SOCKS is available for anonymous ftp from
  788. >
  789. >       host    ftp.inoc.dl.nec.com (143.101.112.3),
  790. >       file    pub/security/socks.cstc.4.0.tar.gz
  791. >
  792. >This version is intended to run with identd user verification (RFC 1413),
  793. >which is available as file pub/security/pidentd-2.1.2.tar.gz.
  794. >
  795. >Both of these are in Gnu's compressed form and required gzip to
  796. >uncompress them.  If you don't already have that you can also pick up
  797. >the file pub/gnu/gzip-1.1.2.tar.Z.  Remember to download them in binary
  798. >mode.
  799. >
  800. >
  801. >I am enclosing the first part of the README.1st file which describes the
  802. >new fearures.  Besides SunOS 4.1.x, the new version has also been ported
  803. >and tested on ULTRIX 4.3, IRIX 4.0.1, and partially on HPUX, thanks to
  804. >Ian Dunkin and Anthony Shipman.
  805. >
  806. >Hope you can make good use of the package.  Enjoy it.
  807. >
  808. >****
  809. >This is SOCKS, a package consisting of a proxy server (sockd) and client
  810. >programs corresponding to finger, whois, ftp, telnet, xgopher, and
  811. >xmosaic, as well as a library module (libsocks.a) for adapting other
  812. >applications into new client programs.
  813. >
  814. >The original SOCKS was written by David Koblas ,
  815. >which included the library module and finger, whois, and ftp clients.
  816. >
  817. >Clients programs added since the original are:
  818. >
  819. >-telnet: adapted from telnet.91.03.25 by David Borman .
  820. > This version is supposed to be much easier than the previous one
  821. > to port to many different systems.
  822. >-xgopher: adapted from xgopher ver. 1.2 by Allan Tuchman .
  823. >-xmosaic: adapted from xmosaic ver. 1.2 by NCSA staff (contact
  824. > Marc Andreesen, ).
  825. >
  826. >The SOCKS protocol has changed with this version.  Since the server and
  827. >the clients must use the same SOCKS protocol, this server does not work
  828. >with clients of previous releases, and these clients do not work with
  829. >servers of previous releases.
  830. >
  831. >The access control mechanism has been expanded:
  832. >
  833. >-A list of users can be included along with other fields (source address,
  834. > destination address, service/port) for permission/denial of access.
  835. >-Identd is used (controlled by option -i and -I) in SOCKS server to try
  836. > to verify the actual user-ids. The code uses the library written by
  837. > Peter Eriksson  and /Pdr Emanuelsson .
  838. >-A shell command can optionally be specified with each line. The command
  839. > is executed if the conditions of that line are satisfied. This is adapted
  840. > from the same feature and code used in the log_tcp package by Wietse
  841. > Venema .
  842. >-Special entries (#NO_IDENTD: and #BAD_ID:) can be included to specify
  843. > shell commands to be executed when the client host doesn't run identd
  844. > and when identd's report doesn't agree with what the client prgram says.
  845. >
  846. >[...]
  847. >The package has been ported for ULTRIX 4.3 by Ian Dunkin and Anthony
  848. >Shipman, for IRIX 4.0.1 by Ian Dunkin (again), and partially for HPUX by
  849. >Anthony Shipman (again!).  (We are a small bunch of busy bees) I also
  850. >include patches by Craig Metz to SOCKSize xarchie and ncftp.  I have not
  851. >try these patches out myself though.
  852. >[...]
  853. ------------------------------------------------------------------
  854. ==================================================================
  855.  
  856. Q.7 Isn't it dangerous to give cracking tools to everyone?
  857.  
  858. That depends on your point of view.  Some people have complained that
  859. giving unrestricted public access to programs like COPS and Crack is
  860. irresponsible because the "baddies" can get at them easily.
  861.  
  862. Alternatively, you may believe that the really bad "baddies" have had
  863. programs like this for years, and that it's really a stupendously good
  864. idea to give these programs to the good guys too, so that they may check
  865. the integrity of their system before the baddies get to them.
  866.  
  867. So, who wins more from having these programs freely available? The good
  868. guys or the bad ? You decide, but remember that less honest tools than
  869. COPS and Crack tools were already out there, and most of the good guys
  870. didn't have anything to help.
  871. ------------------------------------------------------------------
  872.  
  873. Q.8 Why and how do systems get broken into?
  874.  
  875. This is hard to answer definitively.  Many systems which crackers break
  876. into are only used as a means of entry into yet more systems; by hopping
  877. between many machines before breaking into a new one, the cracker hopes
  878. to confuse any possible pursuers and put them off the scent.  There is
  879. an advantage to be gained in breaking into as many different sites as
  880. possible, in order to "launder" your connections.
  881.  
  882. Another reason may be psychological: some people love to play with
  883. computers and stretch them to the limits of their capabilities.
  884.  
  885. Some crackers might think that it's "really neat" to hop over 6 Internet
  886. machines, 2 gateways and an X.25 network just to knock on the doors of
  887. some really famous company or institution (eg: NASA, CERN, AT+T, UCB).
  888. Think of it as inter-network sightseeing.
  889.  
  890. This view is certainly appealing to some crackers, and certainly leads
  891. to both the addiction and self-perpetuation of cracking.
  892.  
  893. As to the "How" of the question, this is again a very sketchy area.  In
  894. universities, it is extremely common for computer account to be passed
  895. back and forth between undergraduates:
  896.  
  897.   "Mary gives her account password to her boyfriend Bert at another
  898.   site, who has a friend Joe who "plays around on the networks".  Joe
  899.   finds other crackable accounts at Marys site, and passes them around
  900.   amongst his friends..." pretty soon, a whole society of crackers is
  901.   playing around on the machines that Mary uses.
  902.  
  903. This sort of thing happens all the time, and not just in universities.
  904. One solution is in education.  Do not let your users develop attitudes
  905. like this one:
  906.  
  907.        "It doesn't matter what password I use on _MY_ account,
  908.             after all, I only use it for laserprinting..."
  909.                                 - an Aberystwyth Law student, 1991
  910.  
  911. Teach them that use of the computer is a group responsibility.  Make
  912. sure that they understand that a chain is only as strong as it's weak
  913. link.
  914.  
  915. Finally, when you're certain that they understand your problems as a
  916. systems manager and that they totally sympathise with you, configure
  917. your system in such a way that they can't possibly get it wrong.
  918.  
  919. Believe in user education, but don't trust to it alone.
  920. ------------------------------------------------------------------
  921.  
  922. Q.9 Who can I contact if I get broken into?
  923.  
  924. If you're connected to the Internet, you should certainly get in touch
  925. with CERT, the Computer Emergency Response Team.
  926.  
  927.         To quote the official blurb:
  928.  
  929. >From: Ed DeHart
  930. > The Computer Emergency Response Team (CERT) was formed by the Defense
  931. > Advanced Research Projects Agency (DARPA) in 1988 to serve as a focal
  932. > point for the computer security concerns of Internet users.  The
  933. > Coordination Center for the CERT is located at the Software Engineering
  934. > Institute, Carnegie Mellon University, Pittsburgh, PA.
  935.  
  936. > Internet E-mail: cert@cert.org
  937. > Telephone: 412-268-7090 24-hour hotline:
  938. >     CERT/CC personnel answer 7:30a.m. to 6:00p.m. EST(GMT-5)/EDT(GMT-4),
  939. >     and are on call for emergencies during other hours.
  940.  
  941. ...and also, the umbrella group "FIRST", which mediates between the
  942. incident handling teams themselves...
  943.  
  944. >From: John Wack 
  945. >[...] FIRST is actually a very viable and growing
  946. >organization, of which CERT is a member.  It's not actually true that,
  947. >if you're connected to the Internet, you should call CERT only - that
  948. >doesn't do justice to the many other response teams out there and in the
  949. >process of forming.
  950.  
  951. >NIST is currently the FIRST secretariat; we maintain an anonymous ftp
  952. >server with a directory of FIRST information (csrc.ncsl.nist.gov:
  953. >~/pub/first).  This directory contains a contact file that lists the
  954. >current members and their constituencies and contact information
  955. >(filename "first-contacts").
  956.  
  957. >While CERT is a great organization, other response teams who do handle
  958. >incidents on their parts of the Internet merit some mention as well -
  959. >perhaps mentioning the existence of this file would help to do that in a
  960. >limited space.
  961.  
  962. The file mentioned is a comprehensive listing of contact points per
  963. network for security incidents.  It is too large to reproduce here, I
  964. suggest that the reader obtains a copy for his/her self by the means
  965. given.
  966. ------------------------------------------------------------------
  967.  
  968. Q.10 What is a firewall?
  969.  
  970. A (Internet) firewall is a machine which is attached (usually) between
  971. your site and a wide area network.  It provides controllable filtering
  972. of network traffic, allowing restricted access to certain internet port
  973. numbers (ie: services that your machine would otherwise provide to the
  974. network as a whole) and blocks access to pretty well everything else.
  975. Similar machines are available for other network types, too.
  976.  
  977. Firewalls are an effective "all-or-nothing" approach to dealing with
  978. external access security, and they are becoming very popular, with the
  979. rise in Internet connectivity.
  980.  
  981. For more information on these sort of topics, see the Gateway paper by
  982. [Cheswick], below.
  983. ------------------------------------------------------------------
  984.  
  985. Q.11 Why shouldn't I use setuid shell scripts?
  986.  
  987. You shouldn't use them for a variety of reasons, mostly involving bugs
  988. in the Unix kernel.  Here are a few of the more well known problems,
  989. some of which are fixed on more recent operating systems.
  990.  
  991. 1) If the script begins "#!/bin/sh" and a link (symbolic or otherwise)
  992. can be made to it with the name "-i", a setuid shell can be immediately
  993. obtained because the script will be invoked: "#!/bin/sh -i", ie: an
  994. interactive shell.
  995.  
  996. 2) Many kernels suffer from a race condition which can allow you to
  997. exchange the shellscript for another executable of your choice between
  998. the times that the newly exec()ed process goes setuid, and when the
  999. command interpreter gets started up.  If you are persistent enough, in
  1000. theory you could get the kernel to run any program you want.
  1001.  
  1002. 3) The IFS bug: the IFS shell variable contains a list of characters to
  1003. be treated like whitespace by a shell when parsing command names.  By
  1004. changing the IFS variable to contain the "/" character, the command
  1005. "/bin/true" becomes "bin true".
  1006.  
  1007. All you need do is export the modified IFS variable, install a command
  1008. called "bin" in your path, and run a setuid script which calls
  1009. "/bin/true".  Then "bin" will be executed whilst setuid.
  1010.  
  1011. If you really must write scripts to be setuid, either
  1012.  
  1013.   a) Put a setuid wrapper in "C" around the script, being very careful
  1014.   to reset IFS and PATH to something sensible before exec()ing the
  1015.   script.  If your system has runtime linked libraries, consider the
  1016.   values of the LD_LIBRARY_PATH also.
  1017.  
  1018.   b) Use a scripting language like Perl which has a safe setuid
  1019.   facility, and is proactively rabid about security.
  1020.  
  1021. - but really, it's safest not to use setuid scripts at all.
  1022. ------------------------------------------------------------------
  1023.  
  1024. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  1025.  
  1026. Using a 'smart' terminal as console and leaving "/dev/console" world
  1027. writable whilst "root" is logged in is a potential hole.  The terminal
  1028. may be vulnerable to remote control via escape sequences, and can be
  1029. used to 'type' things into the root shell.  The terminal type can
  1030. usually be obtained via the "ps" command.
  1031.  
  1032. Various solutions to this can be devised, usually by giving the console
  1033. owner and group-write access only , and then using the setgid mechanism
  1034. on any program which has need to output to the console (eg: "write").
  1035. ------------------------------------------------------------------
  1036.  
  1037. Q.13 Why shouldn't I create Unix accounts with null passwords?
  1038.  
  1039. Creating an unpassworded account to serve any purpose is potentially
  1040. dangerous, not for any direct reason, but because it can give a cracker
  1041. a toehold.
  1042.  
  1043. For example, on many systems you will find a unpassworded user "sync",
  1044. which allows the sysman to sync the disks without being logged in.  This
  1045. appears to be both safe and innocuous.
  1046.  
  1047. The problem with this arises if your system is one of the many which
  1048. doesn't do checks on a user before authorising them for (say) FTP.  A
  1049. cracker might be able to connect to your machine for one of a variety of
  1050. FTP methods, pretending to be user "sync" with no password, and then
  1051. copy your password file off for remote cracking.
  1052.  
  1053. Although there are mechanisms to prevent this sort of thing happening in
  1054. most modern vesions of Unix, to be totally secure requires an in-depth
  1055. knowledge of every package on your system, and how it deals with the
  1056. verification of users.  If you can't be sure, it's probably better not
  1057. to leave holes like this around.
  1058.  
  1059. Another hole that having null-password accounts opens up is the
  1060. possibility (on systems with runtime linked libraries) of spoofing
  1061. system software into running your programs as the "sync" user, by
  1062. changing the LD_LIBRARY_PATH variable to a library of your own devising,
  1063. and running "login -p" or "su" to turn into that user.
  1064.  
  1065.  
  1066. >From: chowes@sfu.ca
  1067. >Don't forget LD_LIBRARY_PRELOAD!  You can point it to a library that
  1068. >contains routines to override LD_LIBRARY_PATH routines.  Main advantage
  1069. >is that the library is a lot smaller by virtue of only having the
  1070. >doctored routines, not *every* routine; and also that some people
  1071. >forget to protect both.
  1072.  
  1073. [Just how many more of these LD_* variables ARE there ? - Alec]
  1074.  
  1075.  
  1076. >From: barnett@alydar.crd.ge.com (Bruce Barnett)
  1077. >
  1078. >One more thing you may want to mention is that each network service must
  1079. >be checked to see if there is any security problem.  Not all services
  1080. >use the shell entry in a passwd file.  Therefore having a null password
  1081. >make allow other services to break into the account.
  1082. >
  1083. >For instance, some systems that provide remote file access uses the
  1084. >username and password to verify access.  The shell entry is not used.
  1085. >
  1086. >Therefore it is possible for someone to use the "sync" account to
  1087. >"mount" a Unix file system, getting access to the account without using
  1088. >the shell.
  1089. >
  1090. >To be precise, I used Sun's TOPS service on a Macintosh to mount a Unix
  1091. >file system thru the sync account as it didn't have any password.  I has
  1092. >user ID "1" when I did this.  Don't know if this needs to be added to
  1093. >the FAQ...  I did notify Sun a while ago about this bug....
  1094. ------------------------------------------------------------------
  1095.  
  1096. Q.14 What security holes are associated with X-windows (and other WMs)?
  1097.  
  1098. Lots, some which affect use of X only, and some which impact the
  1099. security of the entire host system.
  1100.  
  1101. I would prefer not to go into too much detail here, and would refer any
  1102. reader reader looking for detailed information to the other FAQ's in
  1103. relevant newsgroups.  (comp.windows.*)
  1104.  
  1105. One point I will make is that X is one of those packages which often
  1106. generates "Incompatible Usage" security problems, for instance the
  1107. ability for crackers to run xsessions on hosts under accounts with no
  1108. password (eg: sync), if it is improperly set up.  Read the question
  1109. about unpassworded accounts in this FAQ.
  1110. ------------------------------------------------------------------
  1111.  
  1112. Q.15 What security holes are associated with NFS?
  1113.  
  1114. Lots, mostly to do with who you export your disks to, and how.  The
  1115. security of NFS relies heavily upon who is allowed to mount the files
  1116. that a server exports, and whether they are exported read only or not.
  1117.  
  1118. The exact format for specifying which hosts can mount an exported
  1119. directory varies between Unix implementations, but generally the
  1120. information is contained within the file "/etc/exports".
  1121.  
  1122. This file contains a list of directories and for each one, it has a
  1123. series of either specific "hosts" or "netgroups" which are allowed to
  1124. NFS mount that directory.  This list is called the "access list".
  1125.  
  1126. The "hosts" are individual machines, whilst "netgroups" are combinations
  1127. of hosts and usernames specified in "/etc/netgroup".  These are meant to
  1128. provide a method of finetuning access.  Read the relevant manual page
  1129. for more information about netgroups.
  1130.  
  1131. The exports file also contains information about whether the directory
  1132. is to be exported as read-only, read-write, and whether super-user
  1133. access is to be allowed from clients which mount that directory.
  1134.  
  1135. The important point to remember is that if the access list for a
  1136. particular directory in /etc/exports contains:
  1137.  
  1138. 1) 
  1139.  
  1140. Your directory can be mounted by anyone, anywhere.
  1141.  
  1142. 2) 
  1143.  
  1144. Your directory can be mounted by anyone permitted to run the mount
  1145. command at hostname.  This might not be a trustworthy person; for
  1146. instance, if the machine is a PC running NFS, it could be anyone.
  1147.  
  1148. 3) 
  1149.  
  1150. If the netgroup:
  1151.  
  1152. a) is empty, anyone can mount your directory, from anywhere.
  1153.  
  1154. b) contains "(,,)", anyone can mount your directory, from anywhere.
  1155.  
  1156. c) contains the name of a netgroup which is empty or contains "(,,)",
  1157.    anyone can mount your directory, from anywhere.
  1158.  
  1159. d) contains "(hostname,,)", anyone on the named host who is permissioned
  1160.    to mount files can mount your directory.
  1161.  
  1162. e) contains "(,username,)", the named user can mount your directory,
  1163.    from anywhere.
  1164.  
  1165. 4) 
  1166.  
  1167. If you meant to export the directory to the host "athena" but actually
  1168. type "ahtena", the word "ahtena" is taken as a netgroup name, is found
  1169. to be an empty netgroup, and thus the directory can be mounted by
  1170. anyone, anywhere.
  1171.  
  1172. So, if you aren't careful about what you put into /etc/exports and
  1173. /etc/netgroup you could find that a user with a PC could
  1174.  
  1175.   a) mount your mainframe filestore as a network disk
  1176.   b) edit your /etc/passwd or .rhosts or /etc/hosts.equiv ...
  1177.   c) log into your mainframe as another user, possibly "root"
  1178.  
  1179. Disclaimer: The above information may not be true for all platforms
  1180. which provide an NFS serving capability, but is true for all of the ones
  1181. in my experience (Alec).  It should be noted that the SAFE way to create
  1182. an "empty" netgroup entry is:
  1183.  
  1184.                            ngname (-,-,-)
  1185.  
  1186. Which is a netgroup which matches no-one on no-host on no-NIS-domain.
  1187.  
  1188. >From: Mark Crispin 
  1189. >
  1190. >NFS is far more insecure than the FAQ implies.  It does not require
  1191. >any carelessness in export files, since the only thing the export file
  1192. >does is be helpful in disclosing the key that an NFS client needs to
  1193. >unlock your system.  Means exist to guess these keys.  It is prudent,
  1194. >to say the least, to configure your routers to forbid NFS traffic from
  1195. >outside your organization.
  1196.  
  1197. [...this is true; I just haven't had time to document it yet...]
  1198. ------------------------------------------------------------------
  1199.  
  1200. Q.16 How can I generate safe passwords?
  1201.  
  1202. You can't.  The key word here is GENERATE.  Once an algorithm for
  1203. creating passwords is specified using upon some systematic method, it
  1204. merely becomes a matter of analysing your algorithm in order to find
  1205. every password on your system.
  1206.  
  1207. Unless the algorithm is very subtle, it will probably suffer from a very
  1208. low period (ie: it will soon start to repeat itself) so that either:
  1209.  
  1210.   a) a cracker can try out every possible output of the password
  1211.   generator on every user of the system, or
  1212.  
  1213.   b) the cracker can analyse the output of the password program,
  1214.   determine the algorithm being used, and apply the algorithm to other
  1215.   users to determine their passwords.
  1216.  
  1217. A beautiful example of this (where it was disastrously assumed that a
  1218. random number generator could generate an infinite number of random
  1219. passwords) is detailed in [Morris & Thompson].
  1220.  
  1221. The only way to get a reasonable amount of variety in your passwords
  1222. (I'm afraid) is to make them up.  Work out some flexible method of your
  1223. own which is NOT based upon:
  1224.  
  1225.   1) modifying any part of your name or name+initials
  1226.   2) modifying a dictionary word
  1227.   3) acronyms
  1228.   4) any systematic, well-adhered-to algorithm whatsoever
  1229.  
  1230. For instance, NEVER use passwords like:
  1231.  
  1232. alec7           - it's based on the users name (& it's too short anyway)
  1233. tteffum         - based on the users name again
  1234. gillian         - girlfiends name (in a dictionary)
  1235. naillig         - ditto, backwards
  1236. PORSCHE911      - it's in a dictionary
  1237. 12345678        - it's in a dictionary (& people can watch you type it easily)
  1238. qwertyui        - ...ditto...
  1239. abcxyz          - ...ditto...
  1240. 0ooooooo        - ...ditto...
  1241. Computer        - just because it's capitalised doesn't make it safe
  1242. wombat6         - ditto for appending some random character
  1243. 6wombat         - ditto for prepending some random character
  1244. merde3          - even for french words...
  1245. mr.spock        - it's in a sci-fi dictionary
  1246. zeolite         - it's in a geological dictionary
  1247. ze0lite         - corrupted version of a word in a geological dictionary
  1248. ze0l1te         - ...ditto...
  1249. Z30L1T3         - ...ditto...
  1250.  
  1251. I hope that these examples emphasise that ANY password derived from ANY
  1252. dictionary word (or personal information), modified in ANY way,
  1253. constitutes a potentially guessable password.
  1254.  
  1255. For more detailed information in the same vein, you should read the
  1256. APPENDIX files which accompany Crack [Muffett].
  1257. ------------------------------------------------------------------
  1258.  
  1259. Q.17 Why are passwords so important?
  1260.  
  1261. Because they are the first line of defence against interactive attacks
  1262. on your system.  It can be stated simply: if a cracker cannot interact
  1263. with your system(s), and he has no access to read or write the
  1264. information contained in the password file, then he has almost no
  1265. avenues of attack left open to break your system.
  1266.  
  1267. This is also why, if a cracker can at least read your password file (and
  1268. if you are on a vanilla modern Unix, you should assume this) it is so
  1269. important that he is not able to break any of the passwords contained
  1270. therein.  If he can, then it is also fair to assume that he can (a) log
  1271. on to your system and can then (b) break into "root" via an operating
  1272. system hole.
  1273. ------------------------------------------------------------------
  1274.  
  1275. Q.18 How many possible passwords are there?
  1276.  
  1277. Most people ask this at one time or another, worried that programs like
  1278. Crack will eventually grow in power until they can do a completely
  1279. exhaustive search of all possible passwords, to break into a specific
  1280. users' account - usually root.
  1281.  
  1282. If (to simplify the maths) we make the assumptions that:
  1283.  
  1284.   1) Valid passwords are created from a set of 62 chars [A-Za-z0-9]
  1285.   2) Valid passwords are to be between 5 and 8 chars long
  1286.  
  1287. Then the size of the set of all valid passwords is: (in base 62)
  1288.  
  1289.                                    100000b62 +
  1290.                                   1000000b62 +
  1291.                                  10000000b62 +
  1292.                                 100000000b62 =
  1293.                                 ---------
  1294.                                 111100000b62
  1295.  
  1296.                           ~= 222000000000000 (decimal)
  1297.  
  1298. A figure which is far too large to usefully undertake an exhaustive
  1299. search with current technologies.  Don't forget, however, that passwords
  1300. CAN be made up with even more characters then this; you can use ,
  1301. all the punctuation characters, and symbols (~<>|\#$%^&*) too.  If you
  1302. can use some of all the 95 non-control characters in passwords, this
  1303. increases the search space for a cracker to cover even further.
  1304.  
  1305. However, it's still MUCH more efficient for a cracker to get a copy of
  1306. "Crack", break into ANY account on the system (you only need one), log
  1307. onto the machine, and spoof his way up to root priviledges via operating
  1308. systems holes.
  1309.  
  1310. Take comfort from these figures.  If you can slam the door in the face
  1311. of a potential crackers with a robust password file, you have sealed
  1312. most of the major avenues of attack immediately.
  1313. ------------------------------------------------------------------
  1314.  
  1315. Q.19 Where can I get more information?
  1316.  
  1317. Books:
  1318.  
  1319. [Kochan & Wood]
  1320. Unix System Security
  1321.  
  1322. A little dated for modern matters, but still a very good book on the
  1323. basics of Unix security.
  1324.  
  1325. [Spafford & Garfinkel]
  1326. Practical Unix Security
  1327.  
  1328. This wonderful book is a worthy successor to the above, and covers a
  1329. wide variety of the topics which the Unix (and some non Unix) system
  1330. manager of the 90's will come across.
  1331.  
  1332. >From: Gene Spafford 
  1333. >Mention appendix E in "Practical Unix Security."
  1334.  
  1335. Okay: Appendix E contains an extensive bibliography with even more
  1336. pointers to security books than this FAQ contains.
  1337.  
  1338. [Stoll]
  1339. The Cuckoo's Egg
  1340.  
  1341. A real life 1980's thriller detailing the tracing of a cracker from
  1342. Berkeley across the USA and over the Atlantic to Germany.  An excellent
  1343. view from all points: a good read, informative about security, funny,
  1344. and a good illustration of the cracker psyche.  Contains an excellent
  1345. recipie for chocolate chip cookies.
  1346.  
  1347. A videotape of the "NOVA" (PBS's Science Program on TV) episode that
  1348. explained/reenacted this story is available from PBS Home Video.  They
  1349. have a toll-free 800 number within North America.
  1350.  
  1351. I believe that this program was aired on the BBC's "HORIZON" program,
  1352. and thus will be available from BBC Enterprises, but I haven't checked
  1353. this out yet - Alec
  1354.  
  1355. THE TECHNICAL PAPER containing details of the "Cuckoo's Egg" breakin is
  1356. called "Stalking the wily hacker" in an issue of CACM which I will dig
  1357. out and get the proper reference for, in my copious free time - Alec
  1358.  
  1359.  
  1360. [Raymond] (Ed.)
  1361. The New Hackers Dictionary/Online Jargon File
  1362.  
  1363. A mish-mash of history and dictionary definitions which explains why it
  1364. is so wonderful to be a hacker, and why those crackers who aren't
  1365. hackers want to be called "hackers".  The Jargon File version is
  1366. available online - check an archie database for retails. 
  1367. Latest revision: 3.00.
  1368.  
  1369. [Gasser]
  1370. Building a Secure Computer System.
  1371.  
  1372. By Morrie Gasser, and van Nostrand Reinhold; explains what is required
  1373. to build a secure computer system.
  1374.  
  1375. [Rainbow Series] (Especially the "Orange Book")
  1376.  
  1377. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  1378. >The "Rainbow Series" consists of about 25 volumes.  Some of the
  1379. >more interesting ones are:
  1380. >
  1381. >       The "Orange Book", or Trusted Computer Systems Evaluation
  1382. >               Criteria, which describes functional and assurance
  1383. >               requirements for computer systems
  1384. >
  1385. >       Trusted Database Interpretation, which talks both about
  1386. >               trusted databases and building systems out of trusted
  1387. >               components
  1388. >
  1389. >       Trusted Network Interpretation, which (obviously) talks
  1390. >               about networked systems
  1391. >
  1392. >A (possibly) complete list is:
  1393. >       -- Department of Defense Trusted Computer System Evaluation Criteria
  1394. >          (TCSEC), aka the "Orange Book"
  1395. >       -- Computer Security Subsystem Interpretation of the TCSEC
  1396. >       -- Trusted Data Base Management System Interpretation of the TCSEC
  1397. >       -- Trusted Network Interpretation of the TCSEC
  1398. >       -- Trusted Network Interpretation Environments Guideline -- Guidance
  1399. >          for Applying the Trusted Network Interpretation
  1400. >       -- Trusted Unix Working Group (TRUSIX) Rationale for Selecting
  1401. >          Access Control List Features for the Unix System
  1402. >       -- Trusted Product Evaulations -- A Guide for Vendors
  1403. >       -- Computer Security Requirements -- Guidance for Applying the DoD
  1404. >          TCSEC in Specific Environments
  1405. >       -- Technical Rationale Behind CSC-STD-003-85: Computer Security
  1406. >          Requirements
  1407. >       -- Trusted Product Evaluation Questionnaire
  1408. >       -- Rating Maintenance Phase -- Program Document
  1409. >       -- Guidelines for Formal Verification Systems
  1410. >       -- A Guide to Understanding Audit in Trusted Systems
  1411. >       -- A Guide to Understanding Trusted Facility Management
  1412. >       -- A Guide to Understanding Discretionary Access Control in Trusted
  1413. >          Systems
  1414. >       -- A Guide to Understanding Configuration Management in Trusted Systems
  1415. >       -- A Guide to Understanding Design Documentation in Trusted Systems
  1416. >       -- A Guide to Understanding Trusted Distribution in Trusted Systems
  1417. >       -- A Guide to Understanding Data Remanence in Automated Information
  1418. >          Systems
  1419. >       -- Department of Defense Password Management Guideline
  1420. >       -- Glossary of Computer Security Terms
  1421. >       -- Integrity in Automated Information Systems
  1422. >
  1423. >You can get your own copy (free) of any or all of the books by
  1424. >writing or calling:
  1425. >
  1426. >       INFOSEC Awareness Office
  1427. >       National Computer Security Centre
  1428. >       9800 Savage Road
  1429. >       Fort George G. Meade, MD  20755-6000
  1430. >
  1431. >If you ask to be put on the mailing list, you'll get a copy of each new
  1432. >book as it comes out (typically a couple a year).
  1433. ------------------------------------------------------------------
  1434. >From: kleine@fzi.de (Karl Kleine)
  1435. >I was told that this offer is only valid for US citizens ("We only send
  1436. >this stuff to a US postal address").  Non-US people have to PAY to get
  1437. >hold of these documents.  They can be ordered from NTIS, the National
  1438. >Technical Information Service:
  1439. >       NTIS,
  1440. >       5285 Port Royal Rd,
  1441. >       Springfield VA 22151,
  1442. >       USA
  1443. ------------------------------------------------------------------
  1444. >From: Ulf Kieber 
  1445. >just today I got my set of the Rainbow Series.
  1446. >
  1447. >There are three new books:
  1448. > -- A Guide to Understanding Trusted Recovery in Trusted Systems
  1449. > -- A Guide to Understanding Identification and Authentication in Trusted
  1450. >    Systems
  1451. > -- A Guide to Writing the Security Features User's Guide for Trusted Systems
  1452. >
  1453. >They also shipped
  1454. > -- Advisory Memorandum on Office Automation Security Guideline
  1455. >issued by NTISS.  Most of the books (except three or four) can also be
  1456. >purchased from
  1457. >
  1458. >       U.S. Government Printing Office
  1459. >       Superintendent of Documents
  1460. >       Washington, DC 20402            phone: (202) 783-3238
  1461. >
  1462. >>-- Integrity in Automated Information Systems
  1463. >THIS book was NOT shipped to me--I'm not sure if it is still in
  1464. >the distribution.
  1465. ------------------------------------------------------------------
  1466. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  1467. >...
  1468. >The ITSEC (Information Technology Security Evaluation Criteria) is a
  1469. >harmonized document developed by the British, German, French, and
  1470. >Netherlands governments.  It separates functional and assurance
  1471. >requirements, and has many other differences from the TCSEC.
  1472. >
  1473. >You can get your copy (again, free/gratis) by writing:
  1474. >
  1475. >       Commission of the European Communities
  1476. >       Directorate XIII/F
  1477. >       SOG-IS Secretariat
  1478. >       Rue de la Loi 200
  1479. >       B-1049 BRUSSELS
  1480. >       Belgium
  1481. ------------------------------------------------------------------
  1482. >From: Nick Barron 
  1483. >
  1484. >...The ITSEC and associated DTI security publications (the "Green
  1485. >Books") are available for *free* (makes a change) from the DTI
  1486. >Commercial Computer Security Centre.  The contact is Fiona Williams on
  1487. >081 977 3222 or as fjw@dsg.npl.co.uk.  Hope that this is of interest.
  1488. >The ITSEC is currently being "harmonised" with the Orange Book...
  1489.  
  1490. Also note that NCSC periodically publish an "Evaluated Products List"
  1491. which is the definitive statement of which products have been approved
  1492. at what TCSEC level under which TCSEC interpretations.  This is useful
  1493. for separating the output of marketdroids from the truth.
  1494.  
  1495.  
  1496. Papers:
  1497.  
  1498. [Morris & Thompson]
  1499. Password Security, A Case History
  1500.  
  1501. A wonderful paper, first published in CACM in 1974, which is now often
  1502. to found in the Unix Programmer Docs supplied with many systems.
  1503. ------------------------------------------------------------------
  1504. [Curry]
  1505. Improving the Security of your Unix System.
  1506.  
  1507. A marvellous paper detailing the basic security considerations every
  1508. Unix systems manager should know.  Available as "security-doc.tar.Z"
  1509. from FTP sites (check an Archie database for your nearest site.)
  1510. ------------------------------------------------------------------
  1511. [Klein]
  1512. Foiling the Cracker: A Survey of, and Improvements to, Password Security.
  1513.  
  1514. A thorough and reasoned analysis of password cracking trends, and the
  1515. reasoning behind techniques of password cracking.  Your nearest copy
  1516. should be easily found via Archie, searching for the keyword "Foiling".
  1517. ------------------------------------------------------------------
  1518. [Cheswick]
  1519. The Design of a Secure Internet Gateway.
  1520.  
  1521. Great stuff.
  1522.  
  1523. Host: research.att.com
  1524. Location: dist/internet_security
  1525.  
  1526.       FILE      rw-rw-r--    33836     Jul 24 1992    gateway.dvi
  1527.       FILE      rw-rw-r--    42373     Aug 19 1991    gateway.ps
  1528.       FILE      rw-rw-r--    674169    Jun 28 12:23   gateway_slides.ps
  1529. ------------------------------------------------------------------
  1530. [Cheswick]
  1531. An Evening With Berferd: in which a Cracker is Lured, Endured & Studied.
  1532.  
  1533. Funny and very readable, somewhat in the style of [Stoll] but more
  1534. condensed.
  1535.  
  1536. Host: research.att.com
  1537. Location: dist/internet_security
  1538.  
  1539.       FILE      rw-rw-r--    41612     Jul 24 1992    berferd.dvi
  1540.       FILE      rw-rw-r--    81747     Jul 24 1992    berferd.ps
  1541. ------------------------------------------------------------------
  1542. [Bellovin89]
  1543. Security Problems in the TCP/TP Protocol Suite.
  1544.  
  1545. A description of security problems in many of the protocols widely used
  1546. in the Internet.  Not all of the discussed protocols are official
  1547. Internet Protocols (i.e.  blessed by the IAB), but all are widely used.
  1548. The paper originally appeared in ACM Computer Communications Review,
  1549. Vol 19, No 2, April 1989. 
  1550.  
  1551. Host: research.att.com
  1552. Location: dist/internet_security
  1553.  
  1554.       FILE      rw-rw-r--    48703     Aug 22 1991    ipext.ps.Z
  1555. ------------------------------------------------------------------
  1556. [Bellovin91]
  1557. Limitations of the Kerberos Authentication System
  1558.  
  1559. A discussion of the limitations and weaknesses of the Kerberos
  1560. Authentication System.  Specific problems and solutions are presented.
  1561. Very worthwhile reading.  Available on research.att.com via anonymous
  1562. ftp, originally appeared in ACM Computer Communications Review but the
  1563. revised version (identical to the online version, I think) appeared in
  1564. the Winter 1991 USENIX Conference Proceedings.
  1565. ------------------------------------------------------------------
  1566. [Muffett]
  1567. Crack documentation.
  1568.  
  1569. The information which accompanies Crack contains a whimsical explanation
  1570. of password cracking techniques and the optimisation thereof, as well as
  1571. an incredibly long and silly diatribe on how to not choose a crackable
  1572. password.  A good read for anyone who needs convincing that password
  1573. cracking is _really easy_.
  1574. ------------------------------------------------------------------
  1575. [Farmer]
  1576. COPS
  1577.  
  1578. Read the documentation provided with COPS.  Lots of hints and
  1579. philosophy.  The where, why and how behind the piece of security
  1580. software that started it all.
  1581. ------------------------------------------------------------------
  1582. [CERT]
  1583. maillists/advisories/clippings
  1584.  
  1585. CERT maintains archives of useful bits of information that it gets from
  1586. USENET and other sources.  Also archives of all the security
  1587. "advisories" that it has posted (ie: little messages warning people that
  1588. there is a hole in their operating system, and where to get a fix)
  1589. ------------------------------------------------------------------
  1590. [OpenSystemsSecurity]
  1591.  
  1592. A notorious (but apparently quite good) document, which has been dogged
  1593. by being in a weird postscript format.
  1594.  
  1595. >From: amesml@monu1.cc.monash.edu.au (Mark L. Ames)
  1596.  
  1597. >I've received many replies to my posting about Arlo Karila's paper,
  1598. >including the news (that I and many others have missed) that a
  1599. >manageable postscript file and text file are available via anonymous ftp
  1600. >from ajk.tele.fi (131.177.5.20) in the directory PublicDocuments.
  1601.  
  1602. These are all available for FTP browsing from "cert.org".
  1603. ------------------------------------------------------------------
  1604. [RFC-1244]
  1605. Site Security Handbook
  1606.  
  1607. RFC-1244 : JP Holbrook & JK Reynolds (Eds.) "The Site Security Handbook"
  1608. covering incident handling and prevention.  July 1991; 101 pages
  1609. (Format: TXT=259129 bytes), also called "FYI 8"
  1610. ------------------------------------------------------------------
  1611. [USENET]
  1612. comp.virus: for discussions of virii and other nasties, with a PC bent.
  1613. comp.unix.admin: for general administration issues
  1614. comp.unix.: for the hardware/software that YOU use.
  1615. comp.protocols.tcp-ip: good for problems with NFS, etc.
  1616. ------------------------------------------------------------------
  1617.  
  1618. Q.20 How silly can people get?
  1619.  
  1620. This section (which I hope to expand) is a forum for learning by
  1621. example; if people have a chance to read about real life (preferably
  1622. silly) security incidents, it will hopefully instill in readers some of
  1623. the zen of computer security without the pain of experiencing it.
  1624.  
  1625. If you have an experience that you wish to share, please send it to the
  1626. editors.  It'll boost your karma no end.
  1627. ------------------------------------------------------------------
  1628. From: aem@aber.ac.uk
  1629.  
  1630. The best story I have is of a student friend of mine (call him Bob) who
  1631. spent his industrial year at a major computer manufacturing company.  In
  1632. his holidays, Bob would come back to college and play AberMUD on my
  1633. system.
  1634.  
  1635. Part of Bob's job at the company involved systems management, and the
  1636. company was very hot on security, so all the passwords were random
  1637. strings of letters, with no sensible order.  It was imperative that the
  1638. passwords were secure (this involved writing the random passwords down
  1639. and locking them in big, heavy duty safes).
  1640.  
  1641. One day, on a whim, I fed the MUD persona file passwords into Crack as a
  1642. dictionary (the passwords were stored plaintext) and then ran Crack on
  1643. our systems password file.  A few student accounts came up, but nothing
  1644. special.  I told the students concerned to change their passwords - that
  1645. was the end of it.
  1646.  
  1647. Being the lazy guy I am, I forgot to remove the passwords from the Crack
  1648. dictionary, and when I posted the next version to USENET, the words went
  1649. too.  It went to the comp.sources.misc moderator, came back over USENET,
  1650. and eventually wound up at Bob's company.  Round trip: ~10,000 miles.
  1651.  
  1652. Being a cool kinda student sysadmin dude, Bob ran the new version of
  1653. Crack when it arrived.  When it immediately churned out the root
  1654. password on his machine, he damn near fainted...
  1655.  
  1656. The moral of this story is: never use the same password in two different
  1657. places, and especially on untrusted systems (like MUDs).
  1658. ------------------------------------------------------------------
  1659. From: zerkle@cs.ucdavis.edu (Dan Zerkle)
  1660.  
  1661. I've got a good one.
  1662.  
  1663. Our department has a room of workstations for graduate students who have
  1664. not started on a research project.  If you don't have an account, you
  1665. can still use these workstations as terminals.  There is a special,
  1666. null-password account called "terminal".  This account runs a short
  1667. program which accepts a machine name, a user name and a password, then
  1668. runs rlogin to connect you to the machine of your choice.
  1669.  
  1670. Awhile back, I used this system, but accidentally hit RETURN before I
  1671. typed my user name.  Since there was no way to back out, I also hit
  1672. RETURN for the password.
  1673.  
  1674. As it happened, the machine to which I was connecting had an entry in
  1675. the password file like this:
  1676.  
  1677. ::0:1:::        (this is a YP/NIS password entry, missing a "+" symbol)
  1678.  
  1679. You can imagine how startled I was when the terminal program connected
  1680. me and logged me in as root! I sent mail to the system administrator (as
  1681. root, just to irk him), and got the hole patched within a day.
  1682.  
  1683. Ordinarily, the entry in the password file was not a problem.  Normal
  1684. methods of logging in require you to supply a user name.  However, the
  1685. "terminal" login accepted the null string as a user name and passed it
  1686. on (via rlogin) to the host computer.  Thus, purely by accident, I
  1687. managed to break root on that machine.
  1688.  
  1689.                                         -Dan
  1690. --------------------------------------------------------------------
  1691. From: BENNETT@dstos3.dsto.gov.au (John Bennett)
  1692.  
  1693. Hi Alec,
  1694.  
  1695. You asked for contributions for "How silly can people get ?"
  1696. Here is a simple but true and possibly oft repeated story...
  1697.  
  1698. My son bought a new car, so we went down to the local office of the
  1699. Royal Automobile Association to insure it.  A Charming Young Lady was
  1700. very helpful and efficient as we sorted out the details of the policy.
  1701. Once the paperwork was written, the CYL went across the office to a
  1702. computer terminal, sat down, and called to another CYL
  1703.  
  1704. "Is the password still (censored, name of computer company) ?".
  1705.  
  1706. Regards,
  1707.  
  1708. John Bennett bennett@dstos3.dsto.gov.au
  1709. -------------------------------------------------------------------
  1710. From: Alec.Muffett@UK.Sun.COM
  1711.  
  1712. - A cautionary tale, about a friend of mine who will probably wish to
  1713.   remain anonymous, for his sins. (Hi, Ian!)
  1714.  
  1715. At a British university with a particularly paranoid (not to say rabid)
  1716. security policy, the systems administrators had changed the permissions
  1717. on the "su" command, removing world execute permission, and making it
  1718. group-execute only to members of the computing services staff. 
  1719.  
  1720. ...however, the staff were not informed enough to remove world-write
  1721. permission from /dev/console. 
  1722.  
  1723. My friend, Ian, attended this university, and on one occasion became
  1724. particularly annoyed at a fellow student-user (let's call him foobar1).
  1725.  
  1726. Foobar1 was apparently nosing round the terminals of everyone in the
  1727. room, peering over the shoulders of his fellow students, and not obeying
  1728. the rules of etiquette. 
  1729.  
  1730. So, in order to "get him back", Ian did this:
  1731.  
  1732. Ian wrote a script which, every so often, would print:
  1733.  
  1734.         BAD SU: foobar1 on tty0a at 12:34:56
  1735.  
  1736. - to the machine's console.  
  1737.  
  1738. Given that "only members of staff can use 'su' to get to root on this
  1739. system", this must have worried the operators mightily. 
  1740.  
  1741. After a few iterations of this cat-and-mouse game, Ian did:
  1742.  
  1743.         SU: foobar1 on tty0a at 12:45:03
  1744.  
  1745. - thirty seconds later, the machine crashed.  The operations team,
  1746. rather than let this horrible hacker run amok on the system, chose to
  1747. pull the plug.  They then arrived in the terminal room, hauled "foobar1"
  1748. out backwards, took him away and shouted at him for an hour or so, until
  1749. they believed that it wasn't him. 
  1750.  
  1751. I believe that Ian apologised to foobar1 eventually, but the systems
  1752. people never *did* sort it out.  The moral of this tale?
  1753.  
  1754. During an incident:
  1755.  
  1756.     1) don't panic - you might do something stupid
  1757.     2) don't trust any audit trail which is open to compromise
  1758. ------------------------------------------------------------------
  1759. Alec Muffett (alec.muffett@sun.co.uk) Sun Microsystems IR, Bagshot, Surrey, UK
  1760.                          #include 
  1761.